package com.itheima.myextends.入门练习_02;

//大儿子类
//子类继承父类,就拥有了父类的非私有成员
public class Son1 extends Father{
    public void coding(){
        System.out.println("学java");
    }
    public Son1(){
        super();
    }

}

//小儿子类
class Son2 extends Father{

    public void play(){
        System.out.println("玩游戏...");
    }
}
